package ZombieCaminando;

import java.awt.Graphics;
import java.awt.Image;

import javax.swing.ImageIcon;
import javax.swing.JLabel;

public class RepGrafica extends JLabel {


	protected Image miImagen;

	public RepGrafica(Image imagen) {
		super();
		miImagen = imagen;
		setVisible(true);
		setBounds(165, 160, 120, 146);

	}

	public void cambiarImagen(Image imagen) {

	}

	public void dibujar(Graphics grafico, int posX, int posY) {
		setIcon(new ImageIcon(miImagen));
		setLocation(posX, posY);
		super.paintComponents(grafico);
	}

	public Image getImagen() {

		return miImagen;
	}

	public double getAncho() {

		return 1;
	}

	public double getAlto() {

		return 0;
	}
}
